import { post, get, put, del } from '@/utils/request.js'

/**
 * 收藏活动列表
 */
export const getActiveCollectListApi = (data) => {
	return get('/activeCollect/page', data)
}

/**
 * 活动收藏/取消收藏
 */
export const activeCollectUpdateStateApi = (data) => {
	return put('/activeCollect/updateState', data)
}

/**
 * 浏览活动列表
 */
export const getActiveBrowseListApi = (data) => {
	return get('/activeBrowse/page', data)
}

/**
 * 清空浏览记录
 */
export const activeBrowseClearApi = () => {
	return del('/activeBrowse/clear')
}
